</body>
<script>
  function replaceDoc() {
    window.location.reload(true);
    alert('刷新成功！');
    location.href = 'index.php';
  }
</script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/bootstrap-colorpicker/bootstrap-colorpicker.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>


<!--图表插件-->
<script type="text/javascript" src="js/Chart.js"></script>
<script type="text/javascript">
  $(document).ready(function(e) {
    var $dashChartBarsCnt = jQuery('.js-chartjs-bars')[0].getContext('2d'),
      $dashChartLinesCnt = jQuery('.js-chartjs-lines')[0].getContext('2d');

    var $dashChartBarsData = {
      labels: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
      datasets: [{
        label: '订单量',
        borderWidth: 1,
        borderColor: 'rgba(0,0,0,0)',
        backgroundColor: 'rgba(51,202,185,0.5)',
        hoverBackgroundColor: "rgba(51,202,185,0.7)",
        hoverBorderColor: "rgba(0,0,0,0)",
        data: <?php echo json_encode($weeklyData); ?>
      }]
    };
    var $dashChartLinesData = {
      labels: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
      datasets: [{
        label: '交易资金',
        data: <?php echo json_encode($monthlyData); ?>,
        borderColor: '#358ed7',
        backgroundColor: 'rgba(53, 142, 215, 0.175)',
        borderWidth: 1,
        fill: false,
        lineTension: 0.5
      }]
    };

    new Chart($dashChartBarsCnt, {
      type: 'bar',
      data: $dashChartBarsData
    });

    var myLineChart = new Chart($dashChartLinesCnt, {
      type: 'line',
      data: $dashChartLinesData,
    });
  });
</script>

</html>
